<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <title>Profile</title>
</head>
<body>

<h2>Your online profile manager</h2>

<p sec:authorize="isAuthenticated()">
    You are logged in as
    <p sec:authentication="name">John Doe</p>
    <button type="button" onclick="javascript: window.location.href='/profile'">Go to profile</button>
</p>

</body>
</html>
